package com.lingkang.sales.data.vo;


import java.io.Serializable;
import java.util.List;
import lombok.Data;

/**
 * 菜单vo
 */
@Data
public class MenuVo implements Serializable {

  private static final long serialVersionUID = 1L;

  private Integer id;

  /**
   * 父级id
   */
  private Integer parentId;

  /**
   * 菜单名称
   */
  private String name;

  /**
   * URL路径
   */
  private String url;

  /**
   * 图标
   */
  private String icon;

  /**
   * 排序
   */
  private Integer menuSort;

  private List<MenuVo> children;

  /**
   * IDEA 生成构造函数方法，Alt+Insert 选择 Constructor(构造函数)
   */
  public MenuVo(Integer id, Integer parentId, String name, String url, String icon, Integer menuSort) {
    this.id = id;
    this.parentId = parentId;
    this.name = name;
    this.url = url;
    this.icon = icon;
    this.menuSort = menuSort;
  }
}
